package com.example.hallserver;

import com.example.common.MjDemo;
import com.example.hallserver.error.ChessClientError;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created on 2020/2/17.
 *
 * @author Grak
 * @since 1.0
 */
@FeignClient(name = "chessServer",fallback = ChessClientError.class)
public interface ChessClient {

    @GetMapping("/getChess")
    String getChess();

    @GetMapping("/getChessOnly")
    MjDemo getChessOnly();

}
